export type Numberable = number | undefined
// 这个是联合类型
export interface CategoryModel {
    id: number;
    name: string
}

// 单独定义一个拥有分类Id的接口
export interface CategoryIdsModel {
    category1Id: Numberable;
    category2Id: Numberable;
    category3Id: Numberable;
}

export type CategoryListModel = CategoryModel[]

// 接口是可以继承的
export interface CategoryStateModel extends CategoryIdsModel {
    category1Id: Numberable;
    category2Id: Numberable;
    category3Id: Numberable;

}